import { Button } from '@/uiComponents'
import { SelectAllHospital } from '@/api/basedata'

const Demo = (argv: any) => {
    const onclick = (e: any) => {
        SelectAllHospital().then(
            (res: any) => {
                console.log('ok: ', JSON.stringify(res))
            },
            (err: any) => {
                console.log('err: ', err.message)
            }
        )
    }

    return (
        <div>
            <div>Demo page...</div>
            <Button onClick={(e: any) => onclick(e)}>axios请求测试</Button>
        </div>
    )
}

export default Demo
